/**
 * 
 */
package GUI;

import java.awt.*;

import javax.swing.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

/**
 * @author aviat
 *
 */
public class NotifyCustomer extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private JButton btnBack;
	private JLabel iconlabel;
	private JButton btnFinishedEmail;
	private JButton btnFacebook;
	
	public NotifyCustomer() {
		setBackground(new Color(255, 51, 0));
		setLayout(null);
		btnFacebook = new JButton("Facebook");
		btnBack = new JButton("Back");
		btnFinishedEmail = new JButton("Finished Email");
		btnBack.setIcon(new ImageIcon(NotifyCustomer.class.getResource("/resources/back22.png")));
		
		
		initialize();
	}

	private void initialize() {

		
		
		JLabel lblNotifyCustomer = new JLabel("Notify Customer");
		lblNotifyCustomer.setForeground(new Color(0, 204, 255));
		lblNotifyCustomer.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblNotifyCustomer.setBounds(10, 11, 205, 44);
		add(lblNotifyCustomer);
		
		btnBack.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnBack.setBounds(10, 462, 121, 27);
		add(btnBack);
		
		ImageIcon LOGOImageIcon = new ImageIcon(getClass().getClassLoader().getResource("resources/camera-background3.png"));
		ImageIcon LOGO = new ImageIcon (LOGOImageIcon.getImage().getScaledInstance(-1, -1, java.awt.Image.SCALE_SMOOTH));
		
		
		btnFinishedEmail.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		btnFinishedEmail.setIcon(new ImageIcon(NotifyCustomer.class.getResource("/resources/email-icon.png")));
		btnFinishedEmail.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnFinishedEmail.setBounds(257, 139, 191, 54);
		add(btnFinishedEmail);
		
		
		btnFacebook.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				try{
					String URL="https://www.facebook.com/messages/";
					java.awt.Desktop.getDesktop().browse(java.net.URI.create(URL));
				}
				catch(Exception evt){
					JOptionPane.showMessageDialog(null, evt.getMessage());
				}
			}
		});
		btnFacebook.setIcon(new ImageIcon(NotifyCustomer.class.getResource("/resources/facebook.png")));
		btnFacebook.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 12));
		btnFacebook.setBounds(257, 291, 191, 54);
		add(btnFacebook);
		
		iconlabel = new JLabel("");
		iconlabel.setIcon(LOGO);
		iconlabel.setBounds(0, 0, 786, 500);
		add(iconlabel);
	}

	/**
	 * @return the btnBack
	 */
	public JButton getBtnBack() {
		return btnBack;
	}

	/**
	 * @param btnBack the btnBack to set
	 */
	public void setBtnBack(JButton btnBack) {
		this.btnBack = btnBack;
	}

	/**
	 * @return the btnFinishedEmail
	 */
	public JButton getBtnFinishedEmail() {
		return btnFinishedEmail;
	}

	/**
	 * @param btnFinishedEmail the btnFinishedEmail to set
	 */
	public void setBtnFinishedEmail(JButton btnFinishedEmail) {
		this.btnFinishedEmail = btnFinishedEmail;
	}

	/**
	 * @return the btnFacebook
	 */
	public JButton getBtnFacebook() {
		return btnFacebook;
	}

	/**
	 * @param btnFacebook the btnFacebook to set
	 */
	public void setBtnFacebook(JButton btnFacebook) {
		this.btnFacebook = btnFacebook;
	}


}
